<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>vue讲解</title>
<link href="./css/base.css" rel="stylesheet" type="text/css"/>
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
</head>
<body>
<div id="first">
    <h1>数据绑定方式1</h1>
    <h2>{{type1}}</h2>
    <div class="H20"></div>
    <h1>数据绑定方式2</h1>
    <input v-model="type2"></input>
    <h1>数据绑定方式3</h1>
    <div :style="sty3"></div>
</div>


<script type="text/javascript">
    new Vue({
        el:'#first',
        data:{
            type1:"hello world 1",
            type2:"hello world 2",
            sty3:{
                width:'100px',
                height:'20px',
                border:'1px solid gray'
            },
            type4:"hello world 4"
        }
    })
</script>
</body>
</html>